package com.tuniondata.netty.client.future;

import com.tuniondata.netty.bean.RpcMessage;

import java.util.concurrent.Future;

public interface RequestFuture<T> extends Future<T> {
    Throwable cause();

    void setCause(Throwable cause);

    boolean isWriteSuccess();

    void setWriteResult(boolean result);

    String requestId();

    T response();

    void setResponse(RpcMessage response);

    boolean isTimeout();
}
